package com.zhang.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import com.zhang.common.oss.minio.FileInfoVo;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * <p>
 * 属性分组信息表
 * </p>
 *
 * @author 创世神
 * @since 2023-09-09
 */
@Data
@TableName("my_attrgroup")
public class Attrgroup implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 属性分组id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 属性分组名称
     */
    @NotBlank(message = "分组名称不能为空")
    private String groupName;

    private String sort;

    /**
     * 简介
     */
    private String descript;

    private Long iconId;

    /**
     * 分类id
     */
    @NotNull(message = "所属分类不能为空")
    private Long categoryId;

    @TableField(exist = false)
    private FileInfoVo iconInfo;

}
